#pragma once
#include "base/Control.h"
#include "base/TrueTypeFont.h"

class HorizentalBox : public Control
{
public:
    HorizentalBox() {}
    ~HorizentalBox() {}

    void ParseXmlElement(class TiXmlElement* ele);
    bool SetAttribute(const char* attrName, const char* attrVal);
    void OnDraw();
    virtual void onMouseMove(int x, int y);
    virtual void onMouseButtonDown(int button, int x, int y);
    void UpdateLayout();
    Control* CreateControl(std::string sControlClassName);
    Control* GetControlById(std::string name);
    void onMouseButtonUp(int button, int x, int y);
    void onKeyDown(int key, bool bCtrl, bool bShift, bool bAlt) {}
    void onKeyUp(int key);
    BlueprintScriptLibrary::Class* GetClass();
    VarBaseString content;
    VarBaseString sClrBk;
    std::vector<Vec2vbi> vcChildpos;
};
RegisterBlueprintClass(HorizentalBox)